package com.ftg.midamall.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 后台用户和角色关系表
 * </p>
 *
 * @author qjw
 * @since 2023-11-01
 */
@TableName("ums_admin_role_relation")
@ApiModel(value = "UmsAdminRoleRelation对象", description = "后台用户和角色关系表")
public class UmsAdminRoleRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long admin_id;

    private Long role_id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAdminId() {
        return admin_id;
    }

    public void setAdminId(Long admin_id) {
        this.admin_id = admin_id;
    }

    public Long getRoleId() {
        return role_id;
    }

    public void setRoleId(Long role_id) {
        this.role_id = role_id;
    }

    @Override
    public String toString() {
        return "UmsAdminRoleRelation{" +
            "id = " + id +
            ", adminId = " + admin_id +
            ", roleId = " + role_id +
        "}";
    }
}
